<!--
autor: Marco Barría 
https://twitter.com/marco_bf
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>文字遮罩</title>
    <link rel="stylesheet" href="./index.css">
</head>
<body>
    <div class="text">
        <svg>
            <defs>
                <mask id="mask" x="0" y="0" width="100%" height="100%">
                    <rect id="alpha" x="0" y="0" width="100%" height="100%"></rect>
                    <!-- dy：y轴方向偏移量 -->
                    <text id="title" x="50%" y="0" dy="1.58em">SVG + CSS</text>
                    <text id="subtitle" x="50%" y="0" dy="9.8em">Use it please!</text>
                </mask>
            </defs>
            <rect id="base" x="0" y="0" width="100%" height="100%"></rect>
        </svg>
    </div>
    <section class="intro"></section>
</body>
</html>